net/http.Header.get (method)
19 uses
net/http (current package)
fs.go#L428: if etagStrongMatch(etag, w.Header().get("Etag")) {
fs.go#L457: inm := r.Header.get("If-None-Match")
fs.go#L478: if etagWeakMatch(etag, w.Header().get("Etag")) {
fs.go#L511: ir := r.Header.get("If-Range")
fs.go#L595: rangeHeader = r.Header.get("Range")
header.go#L63: func (h Header) get(key string) string {
request.go#L1105: req.Host = req.Header.get("Host")
request.go#L1416: return hasToken(r.Header.get("Expect"), "100-continue")
request.go#L1423: return hasToken(r.Header.get("Connection"), "keep-alive")
request.go#L1430: return hasToken(r.Header.get("Connection"), "close")
server.go#L1186: if cl := w.handlerHeader.get("Content-Length"); cl != "" {
server.go#L1306: te := header.get("Transfer-Encoding")
server.go#L1331: sentLength := header.get("Content-Length") != ""
server.go#L1332: if sentLength && header.get("Connection") == "keep-alive" {
server.go#L1349: if header.get("Connection") == "close" || !keepAlivesEnabled {
server.go#L1508: (!keepAlivesEnabled || !hasToken(cw.header.get("Connection"), "close")) &&
server.go#L1988: } else if req.Header.get("Expect") != "" {
transfer.go#L277: if t.Close && !hasToken(t.Header.get("Connection"), "close") {
transfer.go#L530: if n, err := parseContentLength(t.Header.get("Content-Length")); err != nil {
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |